<pre><code class="javascript">
$p.dataTree("#tree", {
    'core': {
        'data': [{
            "text": "Root node",
            "state": {
                "opened": true
            },
            "children": [{
                    "text": "Child node 1",
                    "state": {
                        "selected": true
                    },
                    "icon": "fa fa-flash"
                }, {
                    "text": "Child node 2",
                    "state": {
                        "disabled": true
                    }
                },
                "Child node 3"
            ]
        }]
    }
});
</code></pre>
